package printerDetection;

import java.util.Random;

public class RandomPrinterDetector implements PrinterDetector{
	
  // a list of test printers
  private static String [] printers;
  
  // the random generator
	Random randGenerator = null;
  
	@Override
	public String[] detectPrinters() {
		
		if (randGenerator == null)
			randGenerator = new Random(12);
		
		int maxPrint = randGenerator.nextInt(10);
		maxPrint = randGenerator.nextInt(10);
		maxPrint = randGenerator.nextInt(10);
		System.out.println(maxPrint);
		
		printers = new String[maxPrint];
		for (int i=0; i < maxPrint; i++)
			printers[i] = new String("Printer "+i);
		
		return printers;
	}

}
